package com.shike.hq.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shike.hq.entity.Inspection;
import com.shike.hq.entity.Label;
import com.shike.hq.mapper.LabelMapper;
import com.shike.hq.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * LabelService的接口实现类
 */
@Service
public class LabelServiceImpl extends ServiceImpl<LabelMapper, Label> implements LabelService {

    @Autowired
    private LabelMapper labelMapper;

    @Override
    public ArrayList<Label> selectAllLabelByAreaId(long areaId) {
        return labelMapper.selectAllLabelByAreaId(areaId);
    }

    @Override
    public ArrayList<Label> selectLabelsByGroupId(long groupId) {
        return labelMapper.selectLabelsByGroupId(groupId);
    }
}
